package ch2;

public class TestJucier {

	public static void main(String[] args) {
		JuiceMaker j = new JuiceMaker();
		j.brand = "九阳";
		j.color = "黄";
		j.watt = 40;
		j.fruit = "梨子";
		// 接收方法的返回值
		String rtn = j.makeJuice();
		System.out.println("喝到了" + rtn);
		j.fruit = "西瓜";
		rtn = j.makeJuice();
		System.out.println("喝到了" + rtn);
	}

}
